<!DOCTYPE html>
<html>
<head>
	<title>微百佳</title>
</head>

<include file="Public:yygame_top" />
<style>

 
 .yq{ margin:0 auto; margin-top:50px;}
 .yq_bottom{  width:90%; position:fixed; bottom:0px; color:#fff; text-align:center; margin-bottom:10px; font-size:14px;}

</style>
<body class="index_body">
    <div class="index_top">
       <img src="__PUBLIC__/Image/yygame/game_top.png">
    </div>
    
    
    <div class="index_content">
     <div class="hv_prizes"><img src="__PUBLIC__/Image/yygame/back_prizes.png" /><div class="prize">恭喜您，获得<span class="prize_name"> {$prizes_name}</span></div></div>
    
      <div class="p_introduce" style="margin-bottom:10px;">
             <p class="p_cont" style="text-align:center;">请在下方填写您的相关信息，方便我们工作人员发放奖品，谢谢！</p>
      </div> 
      <empty name="info">
      <form method="post" action="{:U('Yygame/add_users')}" id="form">
        <div style="" >
      
        <input class="gm_button_input" type="text" placeholder="请输入您的姓名" name="name"  id="name">
        <div style="margin-top:10px;"></div>
         <input class="gm_button_input" type="text" placeholder="请输入您的手机号"  name="phone" id="phone">
        <div style="margin-top:10px;"></div>
         <input class="gm_button_input" type="text" placeholder="请输入您的地址" name="address" id="address">
        <div style="margin-top:10px;"></div>
       <input class="gm_button_input" type="text" placeholder="请输入您的微信号" name="wechat" id="wechat">
        <div style="margin-top:10px;"></div>
         <input class="gm_submit_input" type="button" value="确认提交信息"  onClick="check_input()">
      </div> 
    </form>

    </div>
      <div style="margin-top:10px;">
     </div>
     
        <else /> 
        <input class="gm_submit_input" type="button" value="信息已提交" >

            <div class="yq_bottom">
            <p id="yz_font">客服电话：0573-85965874</p>
            </div>

     </empty> 



     
     


</body>
<script>
function check_input()
{
	$wechat=$('#wechat').val();
	$phone=$('#phone').val();
	$name=$('#name').val();
	$address=$('#address').val();
	$pre=/^(13|18|15|17|14)(\d{9})$/;
	if($name==''){
		alert("请输入姓名");
		return false;
	}
	if(!$pre.test($phone)){
		alert("请输入正确格式的手机号");
		return false;
	}

	if($address==''){
		alert("请输入地址");
		return false;
	}	
	if($wechat==''){
		alert("请输入微信号");
		return false;
	}
	$('#form').submit(); 
}
</script>
</html>

